<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>便携式储能门店订单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card layui-form" wid100>
        <div class="layui-card-header">订单基础信息</div>
        <input type="hidden" name="tradeNo" value="$!{tradeNo}"/>
        <input type="hidden" name="createDate" value="$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm:ss')}"/>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单号</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{tradeNo}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">租借电池类型</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{batteryTypeName}($!{batteryType})</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">电池序列号</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{portableBatterySn}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">归还网点</label>
                            <div class="layui-input-block">
                                <select id="revertPlaceId" name="revertPlaceId" class="layui-hide" lay-ignore>
                                    #if($revertPlaceId)
                                    <option value="$!{revertPlaceId}">$!{revertPlaceName}</option>
                                    #else
                                    <option value="$!{leasePlaceId}">$!{leasePlaceName}</option>
                                    #end
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">归还方式</label>
                            <div class="layui-input-block">
                                #if($revertType == 1)
                                <select name="revertType">
                                    #foreach($item in $revertTypeList)
                                    <option value="$!{item.index()}">$!{item.note()}</option>
                                    #end
                                </select>
                                #else
                                <div class="layui-form-mid layui-word-aux">$!{revertTypeName}</div>
                                #end
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
        </div>
    </div><!-- /.layui-form -->
</div>
#parse('/footFiles.html')
<script type="text/javascript">
layui.config({
	base: '$!{webRoot}/assets/layuiadmin/'
	,webRoot:'$!{webRoot}'
}).extend({
	index: 'lib/index'
}).use(['index', 'form'],function (){

    $('#revertPlaceId').select2({
        placeholder: "请选择归还网点",
        width:'100%',
        theme: 'bootstrap',
        ajax: {
            url: layui.setter.webRoot + '/bxscn/device/portable_battery/place/select.data',
            method: 'post',
            delay: 250,
            processResults: function (result) {
                if (result.code == 200) {
                    return {
                        pagination: {more: result.body.more},
                        results: result.body.data || []
                    };
                } else {
                    return {results: []};
                }
            }
        }
    });
});
</script>
</body>
</html>